 

#region Copyright Statement
//////////////////////////////////////////////
//	ORMAC
//  By: Ali Ghomi (2011)
//////////////////////////////////////////////
#endregion

#region using
using System;
using System.Collections.Generic;
using ORMAC;
using ORMAC.Attributes;
using System.Runtime.Serialization;
#endregion

namespace Test
{
	/// <summary>
	/// Auto generated class by ORMAC from Products table
	/// </summary>
	[Table("Products")]
	[DataContract]
	public class OProducts
	{
		/// <summary>
		/// Auto generated property by ORMAC from ProductID column
		/// </summary>		
		[PrimaryKey]
		[Field("ProductID")]
		[DataMember]
		public int ProductID{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from ProductName column
		/// </summary>		
		[Field("ProductName")]
		[DataMember]
		public string ProductName{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from SupplierID column
		/// </summary>		
		[Field("SupplierID")]
		[DataMember]
		public int SupplierID{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from CategoryID column
		/// </summary>		
		[Field("CategoryID")]
		[DataMember]
		public int CategoryID{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from QuantityPerUnit column
		/// </summary>		
		[Field("QuantityPerUnit")]
		[DataMember]
		public string QuantityPerUnit{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from UnitPrice column
		/// </summary>		
		[Field("UnitPrice")]
		[DataMember]
		public decimal UnitPrice{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from UnitsInStock column
		/// </summary>		
		[Field("UnitsInStock")]
		[DataMember]
		public int UnitsInStock{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from UnitsOnOrder column
		/// </summary>		
		[Field("UnitsOnOrder")]
		[DataMember]
		public int UnitsOnOrder{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from ReorderLevel column
		/// </summary>		
		[Field("ReorderLevel")]
		[DataMember]
		public int ReorderLevel{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from Discontinued column
		/// </summary>		
		[Field("Discontinued")]
		[DataMember]
		public bool Discontinued{
			get;
			set;
		}
		/// <summary>
		/// Auto generated class property by ORMAC using
		///ProductID as primary key and ProductID as foreign key in  OrderDetails table
		/// </summary>				
		[DataMember]
		[Join(ParentCol="ProductID",ChildCol="ProductID")]
		public List<OOrderDetails> OrderDetailss{
			get;
			set;
		}
		/// <summary>
		/// Auto generated class property by ORMAC using
		///CategoryID as foreign key and CategoryID as primary key in  Categories table
		/// </summary>				
		[DataMember]
		[Join(ParentCol="CategoryID",ChildCol="CategoryID")]
		public OCategories Categories {
			get;
			set;
		}
		/// <summary>
		/// Auto generated class property by ORMAC using
		///SupplierID as foreign key and SupplierID as primary key in  Suppliers table
		/// </summary>				
		[DataMember]
		[Join(ParentCol="SupplierID",ChildCol="SupplierID")]
		public OSuppliers Suppliers {
			get;
			set;
		}

	}
}
